import request from "../utils/request";

// 获取数据+分页+搜索
export const apiKnowledge = (data) => {
  return request({ url: "/api/knowledge", method: "post", data });
};

// 发布/草稿
export const apiIssueKnowledge = (data) => {
  return request({ url: "/api/issueKnowledge", method: "post", data });
};

// 删除
export const apiKnowledgeDel = (data) => {
  return request({ url: "/api/knowledgeDel", method: "post", data });
};

// 新增
export const apiAddKnowledge = (data) => {
  return request({ url: "/api/addKnowledge", method: "post", data });
};

// 编辑
export const apiEditKnowledge = (data) => {
  return request({ url: "/api/editKnowledge", method: "post", data });
};
